<div id='vehicle-add-input'>
	<div class='page__hd'>
		添加一辆车
	</div>
	<div class='page__bd'>
		<div class='weui-cells weui-cells__radius' style="margin: 0 10px;">
			<div class='weui-cell'>
				<div class='weui-cell__hd'>
					<label class='weui-label'>vin</label>
				</div>
				<div class='weui-cell__bd'>
					<input class='vehicle-create weui-input' info=1 name='vin' placeholder="请输入vin号" />
				</div>
			</div>
			<div class='weui-cell'>
				<div class='weui-cell__hd'>
					<label class='weui-label'>角色</label>
				</div>
				<label href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg weui-cells_checkbox	">
					<div class='weui-cell__bd'>
						<input type="radio" class="weui-check" name="shiyong" >
						<i class="weui-icon weui-icon-checked"></i>使用者
					</div>
					<div class='weui-cell__bd'>
						<input type="radio" class="weui-check" name="yongyou">
						<i class="weui-icon weui-icon-checked"></i>拥有着
					</div>
				</label>
			</div>
			<div class='weui-cell'>
				<div class='weui-cell__hd'>
					<label class='weui-label'>姓名</label>
				</div>
				<div class='weui-cell__bd'>
					<input class='vehicle-create weui-input' info=1 name='uname' placeholder="请输入姓名" />
				</div>
			</div>
			<div class='weui-cell weui-cell_select'>
				<div class='weui-cell__hd'>
					<label class='weui-label'>车辆所属</label>
				</div>
				<div class='weui-cell__bd'>
					<select class='vehicle-create weui-select' info=1 name='vehicle_license_province'>
						<option value=''>省</option><option>京</option><option>津</option><option>沪</option><option>渝</option><option>冀</option><option>晋</option><option>辽</option><option>吉</option><option>黑</option><option>苏</option><option>浙</option><option>皖</option><option>闽</option><option>赣</option><option>鲁</option><option>豫</option><option>鄂</option><option>湘</option><option>粤</option><option>琼</option><option>川</option><option>贵</option><option>云</option><option>陕</option><option>甘</option><option>青</option><option>藏</option><option>桂</option><option>蒙</option><option>宁</option><option>新</option>
					</select>
				</div>

			</div>
			<div class='weui-cell'>
				<div class='weui-cell__hd'>
					<label class='weui-label'>车牌号码</label>
				</div>
				<div class='weui-cell__bd'>
					<input class='vehicle-create weui-input' info=1 name='vehicle_license_number' placeholder="请输入车牌号码" />
				</div>
			</div>
			<div class='weui-cell weui-cell_select'>
				<div class='weui-cell__hd'>
					<label class='weui-label'>车辆品牌</label>
				</div>
				<div class='weui-cell__bd'>
					<select class='vehicle-create weui-select' info=1 name='vehicle_brand'>
						<option value=''>请输入车辆品牌</option>
						<option>上汽红岩</option>
						<option>一汽解放</option>
						<option>中国重汽</option>
						<option>福田欧曼</option>
						<option>东风商用车</option>
						<option>陕汽重卡</option>
						<option>华菱重卡</option>
						<option>北奔重卡</option>
						<option>联合卡车</option>
					</select>
				</div>
			</div>
		</div>
		<div class='weui-btn-area'>
			<a id='vehicle-add-confirm' href="javascript:;" class="weui-btn weui-btn_fle1x weui-btn_primary">添加</a>
		</div>
	</div>
</div>
<div id='vehicle-add-success' class="weui-msg hidden" style="margin: 50px 0 0 0;">
	<div class="weui-msg__icon-area"><i class="weui-icon weui-icon-success weui-icon_msg"></i></div>
	<div class="weui-msg__text-area">
		<h2 class="weui-msg__title">添加成功</h2>
		<!-- <p class="weui-msg__desc">内容详情，可根据实际需要安排，如果换行则不超过规定长度，居中展现<a href="javascript:void(0);">文字链接</a></p> -->
	</div>
	<div class="weui-msg__opr-area">
		<p class="weui-btn-area">
			<a id='vehicle-add-more' href="javascript:history.back();" class="weui-btn weui-btn_primary">再添加一个车辆</a>
			<a href="javascript:history.back();" class="weui-btn weui-btn_default">返回</a>
		</p>
	</div>
</div>
<script>
	POST.init('#vehicle-add-confirm',{
		text:"添加",
		url:'/maintain/vehicle_create',
		input:function(){
			var r = {};
			$('.vehicle-create').each(function(index, el) {
				r[$(el).attr('name')] = $(el).val();
			});
			console.log(r);
			return r;
		},
		success:function(){
			$('#vehicle-add-input').addClass('hidden');
			$('#vehicle-add-success').removeClass('hidden');
			LIST.reload('#maintain-user-vehicle-list');
		}
	})
	$('#vehicle-add-more').on('click', function() {
		$('#vehicle-add-input').removeClass('hidden');
		$('#vehicle-add-success').addClass('hidden');
		$('.vehicle-create').val('');
	});
</script>